package com.linln.common.enums;

public enum ShopEnum {

    BUSINESSLICENSE(1, "营业执照 "),
    PHYSICALSTORE(2, "实体店门店图"),
    CONSTRUCTIONWORKSHOP(3, "施工车间全景"),
    TECHNICIANCONSTRUCTION(4, "技师施工图"),

    ERROW(0,"错误信息"),

    UNDERREVIEW(0,"审核中"),
    EXAMINATIONPASSED(1,"审核通过"),
    AUDITNOTPASSED(2,"审核不通过");







    private Integer code;

    private String message;

    ShopEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    public static ShopEnum getByType(int type){
        for (ShopEnum constants : values()) {
            if (constants.getCode().equals(type)) {
                return constants;
            }
        }
        return ERROW;
    }
}
